<% if @activity.has_priority? %>
	<div id="priority_intro">
		<%= link_to @activity.priority.name, @activity.priority %> &raquo;
		<%= link_to t('comments.discussions.name', :count => @activity.priority.discussions_count), discussions_priority_url(@activity.priority) %> &raquo;
	</div>
	<p>
<% end %>
<div id="hp_intro">
	<%= render :partial => "activities/#{@activity[:type].downcase}", :locals => {:activity => @activity} %>
</div>
<p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr>
		
		<td valign="top">
			
			<div id="activity_<%= @activity.id %>_comments" class="comment_list_detail">

				<% for comment in @activity.comments.published_and_abusive.by_first_created %>
					<%= render :partial => "comments/show", :locals => {:comment => comment} %>
				<% end %>

				<% if @activity.comments_count > 0 %>
					<%= render :partial => "comments/new_inline_small", :locals => {:activity => @activity, :comment => Comment.new} %>	
				<% end %>

			</div>
			
			<% if @activity.comments_count > 0 and @activity.priority and @activity.priority.discussions_count > 1 %>
				<p>
				<%= link_to t('comments.discussions.more', :count => @activity.priority.discussions_count-1, :priority_name => @activity.priority.name), discussions_priority_url(@activity.priority) %>
			<% end %>
			
		</td>	
		
		<td valign="top" width="180" style="padding-left: 30px;">
			<% if @activity.comments_count > 0 %>
				<%= render :partial => "activities/button", :locals => {:activity => @activity, :following => @following}%>
				<p>
			<% end %>
			<% if @activity.comments_count > 1 %>
				<div class="heading"><%= t('comments.people') %></div>
				<% for user in @activity.commenters_count %>
			
				<table border="0" cellspacing="0" cellpadding="0">
					<tr><td valign="top" width="48">
						<%= render :partial => "users/pic_48", :locals => {:user => user[0]}%>
					</td><td valign="top" style="padding-left: 8px;">
						<% if user[0].status == 'suspended' or user[0].status == 'deleted' %><strike><% end %>
						<%= link_to user[0].name, user[0] %><span class="pc"><%= t('pc.name', :capital => user[0].capitals_count, :currency_short_name =>  current_government.currency_short_name) %></span>
						<% if user[0].status == 'suspended' or user[0].status == 'deleted' %></strike><% end %>
						<div class="profile_small"><%= t('comments.name', :count => user[1]) %></div>
					</td></tr>
				</table>
				<p>		
				<% end %>
			<% end %>
			
		</td>		
	
	</tr>
</table>
